
const util = {
  state: {
    iframeUrl:'',
    iphonekey:''
  },

  mutations: {
    SET_URL: (state, url) => {
      state.iframeUrl = url
    },
    SET_IPHONEKEY: (state, url) => {
      state.iphonekey = url
    },
  },

  actions: {
    setUrl({commit},val){
      console.log('设置值：',val)
      commit('SET_URL',val)
      commit('SET_IPHONEKEY',Date.now())
    },
  }
}

export default util
